<?php
	class ExploreController  extends AppController {
		var $name = 'Explore';
		var $uses = null; 
			
		function index(){
			$posts = null ;
			$this->loadModel('EditorFeaturePost');
			$result = $this->EditorFeaturePost->find('all',array(
					'conditions'=>array('EditorFeaturePost.id > '=> 1),
					'fields'=>array('EditorFeaturePost.id', 'EditorFeaturePost.posts_id','EditorFeaturePost.tagname'),
					'order'=>'EditorFeaturePost.id desc',
					'group'=>'EditorFeaturePost.posts_id',
					'limit'=>3
			));	
			$this->set('posts',$posts);
		}
	}
?>